package org.airlink.persistence.criteria.selections
{
	import flex.persistence.criteria.Expression;
	
	import org.airlink.persistence.criteria.ExpressionImpl;

	public class Count extends ExpressionImpl
	{
		private var expression:Expression;
		public function Count(expression:Expression)
		{
			this.expression = expression;
		}
		
		override public function toString():String{
			var result:String = "";
			result += "count(";
			result += expression.asValue();
			result += ")";
			return result;
		}		
	}
}